package game;

import javax.swing.JPanel;

import main.GameEngine;

public abstract class GenericGame {
	 
	private GameEngine engine;
	
	public GenericGame(GameEngine engine) {
		this.engine = engine;
	}
	
	public abstract JPanel getPanel();
	
	public abstract String getName();
	
	public void levelCleared() {
		engine.nextLevel();
	}
}
